﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wizard.Runtime;

namespace Wizard.MsSql
{
    //partial class MethodInstance : IMethodInstance
    //{
    //    ///// <summary>
    //    ///// Create a new MethodInstance object.
    //    ///// </summary>
    //    ///// <param name="methodInstanceId">Initial value of MethodInstanceId.</param>
    //    //static MethodInstance CreateMethodInstance(int methodInstanceId)
    //    //{
    //    //    MethodInstance methodInstance = new MethodInstance();
    //    //    methodInstance.MethodInstanceId = methodInstanceId;
    //    //    return methodInstance;
    //    //}
    //    ///// <summary>
    //    ///// There are no comments for Property MethodInstanceId in the schema.
    //    ///// </summary>
    //    //[EdmScalarPropertyAttribute(EntityKeyProperty = true, IsNullable = false)]
    //    //[System.Runtime.Serialization.DataMemberAttribute()]
    //    //int MethodInstanceId
    //    //{
    //    //    get
    //    //    {
    //    //        return this._MethodInstanceId;
    //    //    }
    //    //    set
    //    //    {
    //    //        this.OnMethodInstanceIdChanging(value);
    //    //        this.ReportPropertyChanging("MethodInstanceId");
    //    //        this._MethodInstanceId = StructuralObject.SetValidValue(value);
    //    //        this.ReportPropertyChanged("MethodInstanceId");
    //    //        this.OnMethodInstanceIdChanged();
    //    //    }
    //    //}
    //    //private int _MethodInstanceId;
    //    //partial void OnMethodInstanceIdChanging(int value);
    //    //partial void OnMethodInstanceIdChanged();
    //    ///// <summary>
    //    ///// There are no comments for ClassInstance in the schema.
    //    ///// </summary>
    //    //[EdmRelationshipNavigationPropertyAttribute("Wizard.NETModel", "FK_MethodInstance_ClassInstance", "ClassInstance")]
    //    //[System.Xml.Serialization.XmlIgnoreAttribute()]
    //    //[System.Xml.Serialization.SoapIgnoreAttribute()]
    //    //[System.Runtime.Serialization.DataMemberAttribute()]
    //    //ClassInstance ClassInstance
    //    //{
    //    //    get
    //    //    {
    //    //        return ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<ClassInstance>("Wizard.NETModel.FK_MethodInstance_ClassInstance", "ClassInstance").Value;
    //    //    }
    //    //    set
    //    //    {
    //    //        ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<ClassInstance>("Wizard.NETModel.FK_MethodInstance_ClassInstance", "ClassInstance").Value = value;
    //    //    }
    //    //}
    //    ///// <summary>
    //    ///// There are no comments for ClassInstance in the schema.
    //    ///// </summary>
    //    //[System.ComponentModel.BrowsableAttribute(false)]
    //    //[System.Runtime.Serialization.DataMemberAttribute()]
    //    //EntityReference<ClassInstance> ClassInstanceReference
    //    //{
    //    //    get
    //    //    {
    //    //        return ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<ClassInstance>("Wizard.NETModel.FK_MethodInstance_ClassInstance", "ClassInstance");
    //    //    }
    //    //    set
    //    //    {
    //    //        if ((value != null))
    //    //        {
    //    //            ((IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<ClassInstance>("Wizard.NETModel.FK_MethodInstance_ClassInstance", "ClassInstance", value);
    //    //        }
    //    //    }
    //    //}
    //    ///// <summary>
    //    ///// There are no comments for MethodSource in the schema.
    //    ///// </summary>
    //    //[EdmRelationshipNavigationPropertyAttribute("Wizard.NETModel", "FK_MethodInstance_MethodSource", "MethodSource")]
    //    //[System.Xml.Serialization.XmlIgnoreAttribute()]
    //    //[System.Xml.Serialization.SoapIgnoreAttribute()]
    //    //[System.Runtime.Serialization.DataMemberAttribute()]
    //    //MethodSource MethodSource
    //    //{
    //    //    get
    //    //    {
    //    //        return ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<MethodSource>("Wizard.NETModel.FK_MethodInstance_MethodSource", "MethodSource").Value;
    //    //    }
    //    //    set
    //    //    {
    //    //        ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<MethodSource>("Wizard.NETModel.FK_MethodInstance_MethodSource", "MethodSource").Value = value;
    //    //    }
    //    //}
    //    ///// <summary>
    //    ///// There are no comments for MethodSource in the schema.
    //    ///// </summary>
    //    //[System.ComponentModel.BrowsableAttribute(false)]
    //    //[System.Runtime.Serialization.DataMemberAttribute()]
    //    //EntityReference<MethodSource> MethodSourceReference
    //    //{
    //    //    get
    //    //    {
    //    //        return ((IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<MethodSource>("Wizard.NETModel.FK_MethodInstance_MethodSource", "MethodSource");
    //    //    }
    //    //    set
    //    //    {
    //    //        if ((value != null))
    //    //        {
    //    //            ((IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<MethodSource>("Wizard.NETModel.FK_MethodInstance_MethodSource", "MethodSource", value);
    //    //        }
    //    //    }
    //    //}
    //}
}
